<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>修改经销商</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :model="form" ref="contract" :rules="rules" inline-message="true" style="width: 100%">
      <!-- <el-input v-model.trim="form.Dealer_SerialNumber" v-show="false"></el-input> -->
      <!-- <el-input v-model.trim="form.Industry_SubCategory_SerialNumber" v-show="false"></el-input> -->
      <!-- <el-input v-model.trim="form.Industry_Category_SerialNumber" v-show="false"></el-input> -->

      <div class="table_titel">
        <div class="titel">经销商</div>
      </div>
      <el-descriptions :column="3" border size="small">
        <el-descriptions-item label="经销商名称">
          <el-form-item prop="Dealer_Name">
            <el-input v-model.trim="form.Dealer_Name" placeholder="请输入经销商名称"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="预收银行卡号">
          <el-form-item prop="Account_Number">
            <el-input v-model.trim="form.Account_Number" placeholder="请输入预收银行卡号"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="纳税识别号">
          <el-form-item prop="Tax_Number">
            <el-input v-model.trim="form.Tax_Number" placeholder="请输入纳税识别号"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="经销商地址">
          <el-form-item prop="Dealer_Address">
            <div class="linkage">
              <el-cascader v-model="value" filterable :props="{value:'label'}" :options="city"
                style="width: 100%"></el-cascader>
            </div>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="详细地址">
          <el-form-item prop="address">
            <el-input v-model.trim="address">
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>


      <div class="table_titel">
        <div class="titel">经销商银行账户</div>
      </div>
      <el-descriptions :column="3" border size="small" v-for="(item,index) in form.Children.dealer_bank_account"
        :key="index">
        <el-descriptions-item label="经销商开户银行">
          <el-form-item :prop="'Children.dealer_bank_account.' + index + '.Bank_Name'">
            <el-input v-model.trim="item.Bank_Name" placeholder="经销商开户银行"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="账号">
          <el-form-item :prop="'Children.dealer_bank_account.' + index + '.Account_Number'">
            <el-input v-model.trim="item.Account_Number" placeholder="经销商银行账户"></el-input>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>

      <div class="table_titel">
        <div class="titel">图片上传</div>
      </div>
      <el-form-item prop="pic">
        <div class="preview" v-show="form.Children.dealer_bank_pic[0].Picture_Url">
          <el-image class="el-upload-list__item-thumbnail" style="width: 148px; height: 148px"
            :src="DomainIMG + form.Children.dealer_bank_pic[0].Picture_Url" fit="contain"></el-image>
          <span class="el-upload-list__item-actions">
            <span @click="handlePictureCardPreview(form.Children.dealer_bank_pic[0].Picture_Url)"><i
                class="el-icon-zoom-in"></i></span>
            <span @click="handleRemove"><i class="el-icon-delete"></i></span>
          </span>
        </div>
        <el-upload v-show="!form.Children.dealer_bank_pic[0].Picture_Url" class="upload-demo" :show-file-list="false"
          list-type="picture-card" action="" accept="image/*" :before-upload="upload">
          <i slot="default" class="el-icon-plus"></i>
        </el-upload>
      </el-form-item>

      <el-form-item class="form-operation">
        <el-button @click="window.history.back()">返回</el-button>
        <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
      </el-form-item>
    </el-form>
    <el-dialog :visible.sync="dialogVisible">
      <img width="100%" :src="DomainIMG + dialogImageUrl" alt="">
    </el-dialog>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../js/ID_Validity.js"></script>
  <script type="text/javascript" src="../../../js/compressor.js"></script>
  <script type="text/javascript" src="./js/Edit.js"></script>
</body>

</html>